package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.AirDetails;
import com.ruoyi.system.mapper.AirDetailsMapper;
import com.ruoyi.system.service.IAirDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * airDetailsService业务层处理
 * 
 * @author LGD
 * @date 2025-07-18
 */
@Service
public class AirDetailsServiceImpl implements IAirDetailsService
{
    @Autowired
    private AirDetailsMapper airDetailsMapper;

    /**
     * 查询airDetails
     * 
     * @param airDetailsId airDetails主键
     * @return airDetails
     */
    @Override
    public AirDetails selectAirDetailsByAirDetailsId(Long airDetailsId)
    {
        return airDetailsMapper.selectAirDetailsByAirDetailsId(airDetailsId);
    }

    /**
     * 查询airDetails列表
     * 
     * @param airDetails airDetails
     * @return airDetails
     */
    @Override
    public List<AirDetails> selectAirDetailsList(AirDetails airDetails)
    {
        return airDetailsMapper.selectAirDetailsList(airDetails);
    }

    /**
     * 新增airDetails
     * 
     * @param airDetails airDetails
     * @return 结果
     */
    @Override
    public int insertAirDetails(AirDetails airDetails)
    {
        return airDetailsMapper.insertAirDetails(airDetails);
    }

    /**
     * 修改airDetails
     * 
     * @param airDetails airDetails
     * @return 结果
     */
    @Override
    public int updateAirDetails(AirDetails airDetails)
    {
        return airDetailsMapper.updateAirDetails(airDetails);
    }

    /**
     * 批量删除airDetails
     * 
     * @param airDetailsIds 需要删除的airDetails主键
     * @return 结果
     */
    @Override
    public int deleteAirDetailsByAirDetailsIds(Long[] airDetailsIds)
    {
        return airDetailsMapper.deleteAirDetailsByAirDetailsIds(airDetailsIds);
    }

    /**
     * 删除airDetails信息
     * 
     * @param airDetailsId airDetails主键
     * @return 结果
     */
    @Override
    public int deleteAirDetailsByAirDetailsId(Long airDetailsId)
    {
        return airDetailsMapper.deleteAirDetailsByAirDetailsId(airDetailsId);
    }
}
